import 'package:tender_flutter/page/person/model/pay_order_entity.dart';

payOrderEntityFromJson(PayOrderEntity data, Map<String, dynamic> json) {
	if (json['package'] != null) {
		data.package = json['package'].toString();
	}
	if (json['appid'] != null) {
		data.appid = json['appid'].toString();
	}
	if (json['sign'] != null) {
		data.sign = json['sign'].toString();
	}
	if (json['partnerid'] != null) {
		data.partnerid = json['partnerid'].toString();
	}
	if (json['prepayid'] != null) {
		data.prepayid = json['prepayid'].toString();
	}
	if (json['noncestr'] != null) {
		data.noncestr = json['noncestr'].toString();
	}
	if (json['timestamp'] != null) {
		data.timestamp = json['timestamp'].toString();
	}
	if (json['info'] != null) {
		data.info = json['info'].toString();
	}
	return data;
}

Map<String, dynamic> payOrderEntityToJson(PayOrderEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['package'] = entity.package;
	data['appid'] = entity.appid;
	data['sign'] = entity.sign;
	data['partnerid'] = entity.partnerid;
	data['prepayid'] = entity.prepayid;
	data['noncestr'] = entity.noncestr;
	data['timestamp'] = entity.timestamp;
	data['info'] = entity.info;
	return data;
}